<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网上商城</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
    <style>
        .login{
            width: 402px;
            margin: auto;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="login text-center">
              <div class="page-header text-primary">
                <h1>登录</h1>
              </div>
            <p th:if="${loginmsg != ''}" th:text="${loginmsg}"></p>
            <form class="form-horizontal" action="/preLogin/preLogin" method="POST">
                <div class="form-group">
                  <label for="uname" class="col-sm-2 control-label">账号：</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="uname" name="uname" placeholder="账号">
                  </div>
                </div>
                <div class="form-group">
                  <label for="pwd" class="col-sm-2 control-label">密码：</label>
                  <div class="col-sm-10">
                    <input type="password" class="form-control" id="pwd" name="password" placeholder="密码">
                  </div>
                </div>
                <!--<div class="form-group">-->
                  <!--<div class="col-sm-4">-->
                    <!--<label>-->
                      <!--<input type="checkbox"> 记住密码-->
                    <!--</label>-->
                  <!--</div>-->
                  <div class=" col-sm-4">
                    <button type="submit" class="btn btn-primary">登录</button>
                  </div>
                  <div class=" col-sm-4">
                    <a href="/router/toPreReg" class="btn btn-primary">注册</a>
                  </div>
                </div>
              </form>
        </div>
    </div>
</body>
</html>